<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <div id="app">
        <input type="text" v-model.number="age" />
        <input type="text" v-model.trim="info" />
        <input type="text" v-model.lazy="msg" />
        <div>{{msg}}</div>
        <button @click="handle">点击</button>
    </div>
    <script src="./vue.js"></script>
    <script>
        var vm = new Vue({
            el: ' #app ',
            data: {
                age: ' ',
                info: '',
                msg: '',
            },
            methods: {
                handle: function() {
                    // console.log(this.age + 10);
                    // console.log(this.info.length);
                },
            },
        });
    </script>
</body>

</html>